package FactoryMode;

public class demo2 {
    public static void main(String[] args) {
        Factory factory = Factory.abFun(10,20);
        factory.print();

        Factory factory1 = Factory.baFun(10,20);
        factory1.print();

    }
}
